<?
session_start(); 

$cCaptcha = "1234567890abcdefghijklmnopqrstuvwxyz;.-!?/+*";
for ( $I=0;$I<6;$I++) {
	$text= $text . $cCaptcha{rand(0,43)}; 
}
//$text = rand(10000,99999); 
$_SESSION["vercode"] = $text; 
$height = 25; 
$width = 65; 
$image_p = imagecreate($width, $height); 
$background_color = imagecolorallocate($image_p,233, 221,197); 
$text_color = imagecolorallocate($image_p, 0, 0, 0); 
#$white = imagecolorallocate($image_p, 255, 255, 255); 
$font_size = 14;
imagestring($image_p, $font_size, 5, 5, $text, $text_color); 
imagejpeg($image_p,null,100); 
?>
